import request from '@/config/axios'

// 超管ivr知识库问题 列表
export const getIvrDefaultknow = async (params) => {
  return await request.get({ url: `/call/ivr-knowledge-issue/default/page`, params })
}
// 超管ivr知识库问题 创建
export const createIvrDefaultknow = async (data) => {
  return await request.post({ url: `/call/ivr-knowledge-issue/default/create`, data })
}
// 超管ivr知识库问题 更新
export const updateIvrDefaultknow = async (data) => {
  return await request.put({ url: `/call/ivr-knowledge-issue/default/update`, data })
}
// 超管ivr知识库问题 删除
export const deleteIvrDefaultknow = async (id) => {
  return await request.delete({ url: `/call/ivr-knowledge-issue/default/delete?id=` + id })
}
// 超管ivr知识库问题 详情
export const getIvrDefaultknowDetail = async (id) => {
  return await request.get({ url: `/call/ivr-knowledge-issue/default/get?id=` + id })
}

// 超管ivr关键词 列表
export const getIvrKeywordPage = async (params) => {
  return await request.get({ url: `/call/ivr-keywords/default/page`, params })
}
// 超管ivr关键词 创建
export const createIvrKeyword = async (data) => {
  return await request.post({ url: `/call/ivr-keywords/default/create`, data })
}
// 超管ivr关键词 更新
export const updateIvrKeyword = async (data) => {
  return await request.put({ url: `/call/ivr-keywords/default/update`, data })
}
// 超管ivr关键词 删除
export const deleteIvrKeyword = async (id) => {
  return await request.delete({ url: `/call/ivr-keywords/default/delete?id=` + id })
}
// 超管ivr关键词详情
export const getIvrKeyword = async (id) => {
  return await request.get({ url: `/call/ivr-keywords/default/get?id=` + id })
}

// 普通ivr知识库问题 列表
export const getIvrknow = async (params) => {
  return await request.get({ url: `/call/ivr-knowledge-issue/page`, params })
}
// 普通ivr知识库问题 创建
export const createIvrknow = async (data) => {
  return await request.post({ url: `/call/ivr-knowledge-issue/create`, data })
}
// 普通ivr知识库问题 更新
export const updateIvrknow = async (data) => {
  return await request.put({ url: `/call/ivr-knowledge-issue/update`, data })
}
// 普通ivr知识库问题 删除
export const deleteIvrknow = async (id) => {
  return await request.delete({ url: `/call/ivr-knowledge-issue/delete?id=` + id })
}
// 普通ivr知识库问题 详情
export const getIvrknowDetail = async (id) => {
  return await request.get({ url: `/call/ivr-knowledge-issue/get?id=` + id })
}

// 普通ivr关键词 列表
export const getIvrKeywordPages = async (params) => {
  return await request.get({ url: `/call/ivr-keywords/page`, params })
}
// 普通ivr关键词 创建
export const createIvrKeywords = async (data) => {
  return await request.post({ url: `/call/ivr-keywords/create`, data })
}
// 普通ivr关键词 更新
export const updateIvrKeywords = async (data) => {
  return await request.put({ url: `/call/ivr-keywords/update`, data })
}
// 普通ivr关键词 删除
export const deleteIvrKeywords = async (id) => {
  return await request.delete({ url: `/call/ivr-keywords/delete?id=` + id })
}
// 普通ivr关键词详情
export const getIvrKeywords = async (id) => {
  return await request.get({ url: `/call/ivr-keywords/get?id=` + id })
}
